package com.aaa.hospital.nurse.controller;

import com.aaa.hospital.nurse.pojo.Sickroom;
import com.aaa.hospital.nurse.pojo.Sickroomarea;
import com.aaa.hospital.nurse.service.SickroomService;
import com.aaa.hospital.nurse.service.SickroomareaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class SickroomController {
    @Autowired
    private SickroomService sickroomService;
    @RequestMapping("/nurse_test2")
    @ResponseBody
    public List<Sickroom> test(Integer id){

        List<Sickroom> list=sickroomService.selectById(id);

        return list;
    }

}
